package com.chushouya.manager.dto.admin.store.api;

import com.chushouya.manager.constants.DeductStatusEnum;
import com.chushouya.manager.constants.PactStatusEnum;
import com.chushouya.manager.constants.StoreStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class StoreApiDTO {

    private Long storeId;

    private String storeName;

    private String storePhoto;

    private String licensePhoto;

    private String storeRemark;

    private String contactUser;

    private String contactPhone;

    private Integer status;

    private String statusDesc;

    private String province;

    private String city;

    private String area;

    private String address;

    private Long adCode;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private String auditRemark;

    private String commissionRules;

    @ApiModelProperty("协议签署状态")
    private Integer pactStatus;

    @ApiModelProperty("协议签署状态")
    private String pactStatusDesc;
    @ApiModelProperty("代扣协议签约状态")
    private Integer deductStatus;

    @ApiModelProperty("代扣协议签约状态描述")
    private String deductStatusDesc;

    @ApiModelProperty("钱包ID")
    private String userWalletId;

    @ApiModelProperty("关联的回收商ID")
    private Long merchantId;

    @ApiModelProperty("关联的回收商名称")
    private String merchantName;

    public String getPactStatusDesc() {
        return PactStatusEnum.getDesc(this.pactStatus);
    }

    public String getStatusDesc() {
        return StoreStatusEnum.getDesc(this.status);
    }

    public String getDeductStatusDesc() {
        return DeductStatusEnum.getDesc(this.deductStatus);
    }
}
